<?php
include("connection.php");

$result=mysql_query("SELECT distinct(PROPINSI) as PROPINSI FROM pk14_pinter_location");
while ($row = mysql_fetch_object($result)) 
		{
			
			$arr[]=array("name"=>$row->PROPINSI);
		}
		$response=array("items"=>$arr);
		$final=array("response"=>$response);
		echo json_encode($final);
?>